package com.bw.a2209clubshop.http

import com.bawei.a2209_mianshi.ui.mall.model.AdInfoModel
import com.bw.a2209clubshop.base.BaseResponse
import com.bw.a2209clubshop.ui.login.model.LoginParam
import com.bw.a2209clubshop.ui.login.model.LoginResult
import com.bw.a2209clubshop.ui.mall.model.MallBanner
import com.bw.a2209clubshop.ui.mall.model.MallCate
import com.bw.a2209clubshop.ui.mall.model.MallGoods
import com.bw.a2209clubshop.ui.mall.model.MallGoodsDetail
import com.bw.a2209clubshop.ui.mall.model.MallModel
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface ClubService {
//    @GET("/mall/mallHome/cmallAdInfo")
//    suspend fun cmallAdInfo(): BaseResponse<AdInfoModel>
    @POST("/app/sms/sendLoginCode")
    suspend fun getSmsCode(@Query("phone")phone:String,@Query("operatorType")operatorType:Int=2):BaseResponse<Boolean>
    @POST("/app/club_auth/login")
    suspend fun login(@Body body:LoginParam):BaseResponse<LoginResult>
    @GET("/mall/mallHome/cMallGroupList")
    suspend fun getMallData():BaseResponse<List<MallGoods>>
    @GET("/mall/mallHome/cmallBannerInfo")
    suspend fun getMallBanner():BaseResponse<List<MallBanner>>
    @GET("/mall/mallHome/mallGroupIndexList")
    suspend fun getMallCate():BaseResponse<List<MallCate>>
    @GET("/mall/goodsDetail/mallGoodsInfoInfo/581731")
    suspend fun getGoodsDetail():BaseResponse<MallGoodsDetail>
}